package org.javaboy.provider;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhaoxiang
 * @version 1.0
 * @Date 2020/3/18 16:14
 */
@RestController
public class HelloController {

    @Value("${server.port}")
    private Integer port;

    @GetMapping("/hello")
    public String hello(){
        return "hello javaboy" + "--" + port;
    }
}
